# @author: Yxinmiracle
# @project: Python_w
# @file: test.py
# @time: 2020/5/16 22:49

#string = "&#xedaf&#xf871&#xf871"
# import requests
# from lxml import etree
#
# url = "https://www.shixiseng.com/intern/inn_hgc4cml8348a?pcm=pc_SearchList&mxa=asdd.0eqlx1._.$5"
#
# html = requests.get(url)
#
# soup = etree.HTML(html.text)
#
# text = soup.xpath('/html/body/div[1]/div[2]/div[1]/div[3]/span[3]/text()')[0]
# print(text)

"""
主卧(3室) 13.00m^2
次卧(3室) 16.00m^2
主卧(2室) 12.00m^2
次卧(2室) 19.00m^2
次卧(2室) 14.00m^2
主卧(2室) 16.00m^2
主卧(2室) 13.00m^2
"""

import re

res = re.findall('(\d+(?:\.\d+)?)m\^2',"主卧(3室) 18.00m^2")
print(res)